package com.hspedu.abstract_.TemplateMod;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/27
 * @time 19:39
 */
public abstract class Template {
    public abstract void job();
    public void calculate(){
        long start = System.currentTimeMillis();
        job();
        long end = System.currentTimeMillis();
        System.out.println( this.getClass()+"执行时间："+(end - start));
    }
}
